package modellayer;

import java.util.Date;

public class Invoice {

	private int number;
	private Date date;
	private double total;
	
	private Sale sale;
	
	public Invoice(){
		
	}
	
	public Invoice(int number){
		this.number = number;
	}
	
	public Invoice(int number, Date date, double total, Sale sale){
		this.number = number;
		this.date = date;
		this.total = total;
		this.sale = sale;		
	}
	
	public void setNumber(int number){
		this.number = number;
	}
	
	public void setDate(Date date){
		this.date = date;
	}
	
	public void setTotal(double total){
		this.total = total;
	}
	
	public void setSale(Sale sale){
		this.sale = sale;
	}
	
	public int getNumber(){
		return number;
	}
	
	public Date getDate(){
		return date;
	}
	
	public double getTotal(){
		return total;
	}
	
	public Sale getSale(){
		return sale;
	}
}
